let checkLogin = () => {
	let userinfo = uni.getStorageSync('userinfo') || null
	if (userinfo == null) {
		uni.setTabBarItem({
			index: 3,
			text: '未登录'
		})
		return false
	} else {
		uni.setTabBarItem({
			index: 3,
			text: '我的'
		})
		return true
	}
}

export default checkLogin
